1-sample proportions test with continuity correction
data: pop out of size, null probability 0.5
X-squared = 10.091, df = 1, p-value = 0.00149
alternative hypothesis: true p is not equal to 0.5
95 percent confidence interval:
0.5189682 0.5805580
sample estimates:
p
0.5499515
Question 3
(1.96)^2*(42.5)^2/ (5)^2
[1] 277.5556
Question 4
The p value is .049, showing it is statisitcally significant and we can reject the null. Other aspects to this question are verified within the code
Jones = .051 not significant, cannot reject null. Smith = .049 significant, reject null.
Being broad about the direction of the p value, in this case, would overshadow how marginally significant and insignificant the p values actually came out to in this case.
The results of a t test show that the mean is less that 45, with a relatively small p value. We can have more confidence, then, that the average gas tax per gallon was less than .45 cents. ::: {.cell}
One Sample t-test
data: gas_taxes
t = -1.8857, df = 17, p-value = 0.03827
alternative hypothesis: true mean is less than 45
95 percent confidence interval:
-Inf 44.67946
sample estimates:
mean of x
40.86278